/**
  ******************************************************************************
  * @file    Bsp/Led.c 
  * @author  Zlf
  * @version V1.0.0
  * @date    2016-08-08
  * @brief   Led.c module
  ******************************************************************************
  */

/* Includes ------------------------------------------------------------------*/

	#include "LED.h"
	
/* Private typedef -----------------------------------------------------------*/

/* Private define ------------------------------------------------------------*/

/* Private macro -------------------------------------------------------------*/

/* Private function prototypes -----------------------------------------------*/
static void Led_Init( void );

/* Private variables ---------------------------------------------------------*/
F_LED_Typedef fLed = {
	.init = Led_Init
};
	
/* Private functions ---------------------------------------------------------*/

/**
  * @brief  This function to initialise Led gpio.
  * @param  None
  * @retval None
  */
static void Led_Init( void )
{

	GPIO_InitTypeDef GPIO_InitStructure;

	//configure Led Arun
	GPIO_InitStructure.GPIO_Pin   = LED_ARUN_PIN | LED_AERR_PIN | 
									LED_ASTP_PIN | LED_AESC_PIN;
	GPIO_InitStructure.GPIO_Mode  = GPIO_Mode_OUT;
	GPIO_InitStructure.GPIO_Speed = GPIO_Speed_25MHz;	
	GPIO_InitStructure.GPIO_OType = GPIO_OType_OD;
	GPIO_InitStructure.GPIO_PuPd  = GPIO_PuPd_UP;	
	GPIO_Init( LED_GPIO, &GPIO_InitStructure );

	LED_ARUN_OFF;
	LED_AERR_OFF;
	LED_ASTP_OFF;
	LED_AESC_OFF;
}



